package com.cn.yz.common.manager;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface TokenManager {

	/**
	 * 创建
	 * @param request
	 * @param username
	 * @return
	 */
	void createToken(HttpServletResponse response, Map<String, Object> map);
	
	/**
	 * 
	 * @param request
	 * @param token
	 * @return
	 */
	boolean checkToken(HttpServletRequest request, String token);
}
